$(function () {
    findAll();
});

/**
 * 查询数据
 */
function findAll() {
    let data = myAjax("/home",{},"get");
    setHomeData(data.companyModelList);
    setHomeData(data.navModelList);
}

/**
 * 赋值
 */
function setHomeData() {
    $("#logo").attr("src",data.logo);
    $("#companyName").html(data.phone);

}